<?php
include_once('connection/connection.php');
$id=$_REQUEST['id'];
$query_rainfall_main="select * from tbl_dtls_rainfall where id='$id'";
$result_rainfall_main=mysql_query($query_rainfall_main);
$row_rainfall_main=mysql_fetch_array($result_rainfall_main);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<form action="edit_rainfall_main_logic.php" method="post">
<table width="743" border="0">
              
              <tr>
                <td width="155"></td>
                <td colspan="3"></td>
              </tr>
              <tr>
                <td bgcolor="#F0F0F0"><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Enter Station </b></font></td>
                <td colspan="3" bgcolor="#F0F0F0"><input type="text" name="station" value="<?php echo $row_rainfall_main['Station'];?>" />
				<input type="hidden" name="id" value="<?php echo $id;?>" />
				<input type="hidden" name="district" value="<?php echo $row_rainfall_main['district_id'];?>" />
				<input type="hidden" name="block" value="<?php echo $row_rainfall_main['block_id'];?>" />				</td>
              </tr>
              <tr bgcolor="#DDDDDD">
                <td><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Station Latitude </b></font></td>
                <td colspan="3"><input type="text" name="lat" value="<?php echo $row_rainfall_main['Station_Latitude'];?>" /></td>
              </tr>
              <tr bgcolor="#F0F0F0">
                <td><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Station Longitude </b></font></td>
                <td colspan="3"><input type="text" name="long" value="<?php echo $row_rainfall_main['Station_Longitude'];?>" /></td>
              </tr>
              
              <tr bgcolor="#DDDDDD">
                <td><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;<b>Year Range </b></font></td>
                <td width="19"><input type="text" name="frm" value="<?php echo $row_rainfall_main['year_from'];?>" size="5"  readonly="readonly"/> </td>
                <td width="3"><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;To</font></td>
                <td width="478"><input type="text" name="to" value="<?php echo $row_rainfall_main['year_to'];?>" size="5" readonly="readonly" /></td>
              </tr>
              <tr bgcolor="#F0F0F0">
                <td>&nbsp;</td>
                <td colspan="3"><input type="submit" name="submit" value="submit" /></td>
              </tr>
</table>
</form>
</body>
</html>
